#ifndef VIEW_COMPONENT_TOOLS_CDASHBOARD_DCB_H_
#define VIEW_COMPONENT_TOOLS_CDASHBOARD_DCB_H_

#include <QWidget>

#include "ui_CDashboard_DCB.h"

class CDashboard_DCB : public QWidget
{
    Q_OBJECT
public:
    CDashboard_DCB(QWidget *parent = nullptr);
    ~CDashboard_DCB();

    Q_INVOKABLE void ResetData();

protected:
    void reset_lockers_layout(int max_row, int max_col);
    QString get_device_id();
    void open_lockers(int begno, int endno);

protected slots:
    void event_box_clicked(int id);

    void on_combo_layout_currentIndexChanged(int index);
    void on_btn_openbox_clicked();
    void on_btn_openall_clicked();
    void on_btn_doorstatus_clicked();
    void on_btn_itemstatus_clicked();

private:
    Ui::CDashboard_DCB ui;
};

#endif  // VIEW_COMPONENT_TOOLS_CDASHBOARD_DCB_H_